package com.lhb.dao;

import com.lhb.pojo.TbPermission;
import com.lhb.pojo.resp.TbPermissionResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LiangHaiBo
 * @version 1.0
 * @date 2021.10.14 下午 16:02
 */
@Mapper
public interface PermissionMapper {
    List<TbPermissionResp> findByRoleId(Integer roleid);

    List<TbPermissionResp> findAll();

    List<TbPermissionResp> findByUserName(@Param("userName") String primaryPrincipal);

}
